<nb-card>
  <nb-card-header>
    试题导入
  </nb-card-header>
  <nb-card-body>
    <toaster-container [toasterconfig]="config"></toaster-container>
    <div class="row" >
      <div class="input-group col-xxxl-9 col-xxl-9 col-lg-9 col-md-9">
        <span class="input-group-btn">
          <button class="btn btn-primary btn-icon">
            <i class="fa fa-file-excel-o" aria-hidden="true"></i>
          </button>
        </span>
        <input class="form-control" type="file" ng2FileSelect [uploader]="uploader" (change)="selectedFileOnChanged($event)" />
        <span class="input-group-btn">
          <button type="button" class="btn btn-success" (click)="uploader.uploadAll()" [disabled]="!uploader.getNotUploadedItems().length">
            上传
          </button>
        </span>
      </div>
    </div>
    <div class="row">
      <ng2-smart-table [settings]="settings" [source]="source" (deleteConfirm)="onDeleteConfirm($event)">
      </ng2-smart-table>
    </div>
    <swal #deleteSwal title="确认删除该记录?" text="操作不可恢复！" [focusCancel]="true" >
    </swal>
  </nb-card-body>
</nb-card>